package org.example.constants;

public class Constants {

    /**
     * vertex and edge definition
     **/
    public static final String VERTEX_PERSON = "0";

    public static final String VERTEX_ACCOUNT = "1";

    public static final String VERTEX_LOAN = "2";

    public static final String EDGE_GUARANTEE = "3";

    public static final String EDGE_APPLY = "4";

    public static final String EDGE_LOAN_DEPOSIT_ACCOUNT = "5";

    public static final String EDGE_ACCOUNT_TRANSFER_ACCOUNT = "6";

    /**
     * parallelism setting
     **/
    public static final int DEFAULT_PARALLELISM = 8;

    public static final int SOURCE_PARALLELISM = 1;

    public static final int SINK_PARALLELISM = 1;

    public static final int FILTER_PARALLELISM = DEFAULT_PARALLELISM;

    public static final int MAP_PARALLELISM = DEFAULT_PARALLELISM;

    public static final int UNION_PARALLELISM = DEFAULT_PARALLELISM;

    public static final int ITERATOR_PARALLELISM = DEFAULT_PARALLELISM;

    /**
     * fields
     **/
    public static final String ACCOUNT_ID = "accountId";

    public static final String LOAN_ID = "loanId";

    public static final String PERSON_ID = "personId";

    public static final String FROM_ID = "fromId";

    public static final String TO_ID = "toId";

    public static final String LOAN_AMOUNT = "loanAmount";

    public static final String AMOUNT = "amount";

    /**
     * filename
     **/
    public static final String FILE_ACCOUNT = "Account.csv";
    public static final String FILE_PERSON = "Person.csv";
    public static final String FILE_LOAN = "Loan.csv";
    public static final String FILE_PERSON_OWN_ACCOUNT = "PersonOwnAccount.csv";
    public static final String FILE_PERSON_APPLY_LOAN = "PersonApplyLoan.csv";
    public static final String FILE_LOAN_DEPOSIT_ACCOUNT = "LoanDepositAccount.csv";
    public static final String FILE_PERSON_GUARANTEE_PERSON = "PersonGuaranteePerson.csv";
    public static final String FILE_ACCOUNT_TRANSFER_ACCOUNT = "AccountTransferAccount.csv";

    public static final String OUTPUT_DIR = "output.dir";
}
